
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  /* 项目在主轴上的排列方式 */
  justify-content: center;
  /* 项目在交叉轴上的排列方式 */
  align-items: center;
  background: url('./images/sunlight.png') no-repeat;
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(4px);
  z-index: -3;
}
/* 音频播放器 */
.play-container {
  position: relative;
}
/* 音乐控制器 */
.play-container .play-control {
  width: 350px;
  height: 47px;
  padding: 20px;
  background-color:#FFFFFF;
  border-radius: 15px;
  display: flex;
  /* 主轴两端对齐 */
  justify-content: space-between;
  /* 层级 */
  z-index: 10;
  box-shadow: 5px 5px 50px #f99a9a;
}
/* 音乐控制器中的封面照片盒子 */
.play-control .cover {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: yellow;
  margin-top: -77px;
  padding: 6px;
}
/* 封面照片 */
.cover img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* 音频播放器中控制按钮的样式 */
.play-control .control {
  width: 65%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control button {
  background: transparent;
  border: 0;
  text-shadow: 1px 1px 2px #000;
}

/* 按钮中icon图标的样式 */
.control button span {
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 36px;
  color: #666;
}
/* 鼠标指针移入图标时的效果 */
.control button span:hover {
  border-radius: 6px;
  background-color: #666;
  color: #fff;
}

.volume-slider {
  width: 36px;
  height: 100px;
  transform: rotate(270deg);
  display: none;
  margin-top: -100px;
}

/* 歌曲信息卡片的样式 */
.play-container .play-info {
  width: 80%;
  position: absolute;
  /* 通过更改top属性的值，进行卡片的显示与隐藏 0->隐藏，-100%->显示 */
  top:-100%;
  left: 7%;
  padding: 8px 10px;
  z-index: -1;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4.5px);
  -webkit-backdrop-filter: blur(4.5px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
	border-style: solid;
  display: flex;
  justify-content: flex-end;
}
/* 歌曲信息卡片的歌曲信息样式 */
.play-info .info {
  width: 60%;
  font-size: 14px;
}
.info .name {
  font-size: 16px;
  font-weight: bold;
}
.info .singer {
  color: #666;
  line-height: 24px;
}
/* 进度条 */
.info .music-progress {
  width: 100%;
}

.music-progress .music-progress-top {
  display: flex;
  justify-content: space-between;
  color: #ff1d68;
  line-height: 20px;
}

.music-progress .music-progress-bar {
  width: 100%;
  height: 5px;
  background-color: #cccaca;
  border-radius: 10px;
  margin-top: 3px;
}
.music-progress-bar .music-progress-line {
  width: 0;
  height: 100%;
  background-color: #ff1d68;
}

/* 歌词模态框的样式 */
.modal {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;/*固定定位，参照浏览器窗口*/
  top: 0;
  left: 0;
  display: none;
}

.modal .modal-box {
  width: 30%;
  height: 100%;
  background-color: #fff;
  position: absolute;
  top: 0;
  left: 0;
}

.modal-box .modal-box-top {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  justify-content: space-between;
  border-bottom: 1px solid gray;
}
.modal-box-top .modal-title {
  font-size: 20px;
  font-weight: bold;
 
}
.modal-box-top .modal-close span {
  font-size: 20px;
}

.modal-box .modal-wrapper {
  width: 100%;
  height: calc(100% - 41px);
  overflow-y: auto;
  padding: 0 20px;
  box-sizing: border-box;
}
